.search-tag-select {
  position: relative;
  width: 100%;

  &.disabled {
    cursor: not-allowed;

    .search-tag-select-wrapper {
      background-color: #f5f5f5;
      border-color: #d9d9d9;
      color: rgba(0, 0, 0, 0.25);

      &:hover {
        border-color: #d9d9d9;
      }
    }
  }

  .search-tag-select-wrapper {
    display: flex;
    align-items: center;
    padding: 0px 11px;
    min-height: 32px;
    border: 1px solid #e7e7eb;
    border-radius: 6px;
    transition: all 0.3s;

    &:hover {
      border-color: #d9d9d9;
    }

    &:focus-within {
      border-color: #4551e5;
      box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
      outline: 0;
    }
  }

  .tags-container {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    overflow: hidden;
    align-items: center;

    .search-tag {
      display: flex;
      align-items: center;
      margin-right: 4px;
      margin-bottom: 2px;
      margin-top: 2px;
      padding: 4px 8px;
      background-color: rgba(69, 81, 229, 0.1);

      .tag-icon {
        margin-right: 4px;
        display: flex;
        align-items: center;
      }
      .ant-tag-close-icon {
        font-size: 11px;
        font-weight: bold;
        margin-left: 5px;
      }

      &.hidden-count {
        background-color: #f5f5f5;
        color: #999;
        border-color: #e8e8e8;
      }
    }
  }

  .input-container {
    flex: 1;
    min-width: 50px;
    .search-input {
      border: none;
      outline: none;
      background: transparent;
      width: 100%;
      height: 38px;
      padding: 0 4px;

      &::placeholder {
        color: rgba(18, 18, 18, 0.3);
      }
      &:disabled {
        cursor: not-allowed;
        background-color: transparent;
      }
      &:focus {
        border-color: #4551e5;
      }
    }
  }

  .suffix-container {
    display: flex;
    align-items: center;
    margin-left: 8px;

    .clear-icon {
      cursor: pointer;
      color: #999;
      padding: 0 4px;

      &:hover {
        color: #666;
      }
    }

    .search-icon {
      margin-left: 4px;
      color: #999;
    }
  }
}
